package servers;

import java.util.concurrent.TimeUnit;

import javax.xml.ws.Endpoint;

import webServices.Draw;

public class DrawServer2 {

	public static void main(String[] args) {
		
		Boolean running = true;
		
		Endpoint endpoint = Endpoint.publish("http://localhost:8480/photoshop", new Draw());
		try {
			System.out.println("-- Welcome on the Image Manager Web Service Server 2 ! --");
			while(running) {
				TimeUnit.MILLISECONDS.sleep(200);
			}
		} catch (Exception e) { }
		endpoint.stop();
	}
}